<?xml version='1.0' encoding='UTF-8' ?>
<ui:composition xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:pt="http://xmlns.jcp.org/jsf/passthrough"	
	xmlns:tags="http://tags.com/facelets">

		<tags:buttonJS id="#{id}" value="#{value}"  
			tooltip="#{tooltip}" 			
   			disabled="#{disabled}" onclick="confirmDialog('#{msg[title]}', '#{msg[message]}', '#{(not empty yes)?msg[yes]:msg['fw.btn.yes']}', '#{(not empty yesTitle)?msg[yesTitle]:msg['fw.btn.yes.tooltip']}', '#{(not empty no)?msg[no]:msg['fw.btn.no']}', '#{(not empty noTitle)?msg[noTitle]:msg['fw.btn.no.tooltip']}', '#{(not empty actionYes)?'ConfirmLinkYes':''}', '#{(not empty actionNo)?'ConfirmLinkNo':''}');"
   			styleClass="#{styleClass}"  />	
										
		<h:panelGroup layout="block" style="display:none;"> 
			<h:commandLink id="ConfirmLinkYes" action="#{mb[actionYes]}" style="display:none;" rendered="#{not empty actionYes}" >
				<f:ajax execute="#{(not empty processYes)? processYes: '@this'}" 
					render="#{(not empty updateYes)? updateYes : '@form'}"  onevent="#{oneventYes}" />
			</h:commandLink>
					
			<h:commandLink id="ConfirmLinkNo" action="#{mb[actionNo]}" style="display:none;" rendered="#{not empty actionNo}" >
				<f:ajax execute="#{(not empty processNo)? processNo: '@this'}" 
					render="#{(not empty updateNo)? updateNo : '@form'}"  onevent="#{oneventNo}"/>
			</h:commandLink>
			
		</h:panelGroup>						
			   
</ui:composition>